unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DB, DBAccess, Uni, StdCtrls, UniProvider, SQLServerUniProvider, MemDS;

type
  TForm1 = class(TForm)
    UniConnection1: TUniConnection;
    Button1: TButton;
    SQLServerUniProvider1: TSQLServerUniProvider;
    UniQuery1: TUniQuery;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
  StrsA:TStringList;
  StrsB:TStringList;
  StrsC:TStringList;
begin
  StrsA:=TStringList.Create;
  StrsB:=TStringList.Create;
  StrsC:=TStringList.Create;
  UniConnection1.Connect;
  UniConnection1.GetTableNames(StrsA,True);
  UniConnection1.GetDatabaseNames(StrsB);

  UniQuery1.SQL.Text:='select * from tbl_memb order by unit_link';
  UniQuery1.GetFieldNames(StrsC);
  ShowMessage(UniQuery1.GetOrderBy);
  ShowMessage(UniQuery1.KeyFields);

  ShowMessage(StrsA.Text);
  ShowMessage(StrsB.Text);
  ShowMessage(StrsC.Text);
end;

end.
